<?php
namespace app\common\validate;

use think\Validate;

class AuthSchool extends Validate
{
    protected $rule = [
        'agent_id'       => 'require',
        'school_id'       => 'require',
    ];

    protected $message = [
        'school_id' => '',
        'agent_id'     => '',
        'status'            => '{%status_val}',
    ];

    protected $scene = [
        'add'   => ['agent_id', 'school_id'],
        'edit'  => ['agent_id', 'school_id'],
    ];
}